home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
prog
/
ccomment.arj
/
CCOMMENT.DOC
< prev
next >
Wrap
Text File
|
1994-03-07
|
882b
|
27 lines
CCOMMENT takes a C/C++ source file and either converts any "C++" style
comments (two slashes //) into regular /* C style */ comments, or strips
all comments from the file completely.
On the command line, you specify the input source file name, the output
file name, and either /c or /strip, to convert comments to C or strip them,
respectively. For example:
ccomment glorkum.cpp glorkum.c /c
converts the comments into "glorkum.cpp" into C-style comments and saves
the converted file as "glorkum.c".
I have included the source code for this program; you can use it for
anything you want, but please keep the copyright notice intact.
I am interested in seeing how far this program gets distributed. If you
find this utility to be of use, please take a minute and send a letter or
postcard to:
Andrew Brault
41 Liberty Ln.
Bedford, MA 01731